package com.mfhcd.facepay.adapter;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.mfhcd.facepay.R;
import com.mfhcd.facepay.databinding.LayoutFunctionItemBinding;
import com.mfhcd.facepay.model.IndexPageModel;
import com.mfhcd.facepay.viewholder.ViewHolder;

import java.util.List;

/**
 * @Author：张洪顺
 * @E-Mail: zhanghs@mfhcd.com
 * @Date：2019-09-17 15:07
 * @版权所有 © 现代金融控股（成都）有限公司
 * @描述：首页标签功能菜单适配器
 */
public class IndexPageTagFunctionAdapter extends BaseAdapter<IndexPageModel, LayoutFunctionItemBinding> {

    public IndexPageTagFunctionAdapter(@Nullable List<IndexPageModel> data) {
        super(R.layout.layout_function_item, data);
    }

    @Override
    protected void convert(@NonNull ViewHolder<LayoutFunctionItemBinding> helper, IndexPageModel item) {
        helper.binding.setItemModel(item);
        helper.binding.executePendingBindings();
    }
}
